/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const tableRouter = {
  path: '/table2',
  component: Layout,
  redirect: '/table/index',
  alwaysShow: true, // will always show the root menu
  meta: {
    title: '进度管理',
    roles: ['myTable', 'participation'] // you can set roles in root nav
  },
  children: [
    {
      path: 'myTableOne',
      component: () => import('@/views/table/doing/myTable1'),
      name: 'myTableOne',
      meta: {
        title: '现场调查记录表',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'myTableTwo',
      component: () => import('@/views/table/doing/myTable2'),
      name: 'myTableTwo',
      meta: {
        title: '现场检测方案',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'myTableThree',
      component: () => import('@/views/table/doing/myTable3'),
      name: 'myTableThree',
      meta: {
        title: '写实记录表',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'myTableFour',
      component: () => import('@/views/table/doing/myTable4'),
      name: 'myTableFour',
      meta: {
        title: '采样记录表',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'myTableFive',
      component: () => import('@/views/table/doing/myTable5'),
      name: 'myTableFive',
      meta: {
        title: '样品交接单',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'myTableSix',
      component: () => import('@/views/table/doing/myTable6'),
      name: 'myTableSix',
      meta: {
        title: '实验室检测',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'myTableSeven',
      component: () => import('@/views/table/doing/myTable8'),
      name: 'myTableSeven',
      meta: {
        title: '报告中心',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'myTableRes1',
      component: () => import('@/views/table/doing/myTableRes1'),
      name: 'myTableRes1',
      hidden: true,
      meta: {
        title: '待修改现成记录',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    }, {
      path: 'myTableRes2',
      component: () => import('@/views/table/doing/myTableRes2'),
      name: 'myTableRes2',
      hidden: true,
      meta: {
        title: '待修改检测结果',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    }
  ]
}
export default tableRouter
